<?php

declare (strict_types=1);

namespace app\common\model;

use cores\BaseModel;
use app\common\library\helper;

/**
 * 优惠券模型
 * Class Coupon
 * @package app\common\model
 */
class Exchange extends BaseModel
{
    // 定义表名
    protected $name = 'exchange_exchange';

    // 定义主键
    protected $pk = 'id';


    /**
     * 兑换码库详情
     * @param int $exchangeId 兑换码库ID
     * @return static|array|null
     */
    public static function detail(int $exchangeId)
    {
        return self::get($exchangeId);
    }

}
